package com.ruoyi.vpn.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.time.Duration;

/**
 * plan对象 vpn_plan
 * 
 * @author Edwin
 * @date 2024-01-08
 */
public class VpnPlan extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long planId;

    /** 套餐名称 */
    @Excel(name = "套餐名称")
    private String name;

    /** 套餐描述 */
    @Excel(name = "套餐描述")
    private String description;

    /** 套餐天数 */
    @Excel(name = "套餐天数")
    private Long days;

    /** 套餐流量值M */
    @Excel(name = "套餐流量值M")
    private Long bandwidth;



    @Excel(name = "套餐价格")
    private Double price;

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return "VpnPlan{" +
                "planId=" + planId +
                ", name='" + name + '\'' +
                ", description='" + description + '\'' +
                ", days=" + days +
                ", bandwidth=" + bandwidth +
                ", price=" + price +
                '}';
    }
    public VpnPlan() {
    }

    public VpnPlan(Long planId, String name, String description, Long days, Long bandwidth, Double price) {
        this.planId = planId;
        this.name = name;
        this.description = description;
        this.days = days;
        this.bandwidth = bandwidth;
        this.price = price;
    }
    public void setPlanId(Long planId)
    {
        this.planId = planId;
    }

    public Long getPlanId() 
    {
        return planId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setDays(Long days) 
    {
        this.days = days;
    }

    public Long getDays() 
    {
        return days;
    }
    public void setBandwidth(Long bandwidth) 
    {
        this.bandwidth = bandwidth;
    }

    public Long getBandwidth() 
    {
        return bandwidth;
    }

}
